//
//  PKLine.m
//  PianKe
//
//  Created by lanou on 15/12/24.
//  Copyright © 2015年 JasperSong. All rights reserved.
//

#import "PKLine.h"

@implementation PKLine

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:CGRectMake(frame.origin.x, frame.origin.y, frame.size.width, 0.5)];
    if (self){
        self.backgroundColor = [UIColor lightGrayColor];
    }
    return self;
}

+ (PKLine *)lineWithX:(CGFloat)x Y:(CGFloat)y Width:(CGFloat)width{
    return [[PKLine alloc]initWithFrame:CGRectMake(x, y, width, 0.5)];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
